package com.mj.crackscreen.activity;

import com.mj.crackscreen.widget.CustomView;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
/**
 * 碎屏
 * @author zhaominglei
 * @date 2015-3-6
 * 
 */
public class CrackscreenActivity extends Activity {
	@SuppressWarnings("unused")
	private static final String TAG = CrackscreenActivity.class.getSimpleName();

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		CustomView view = new CustomView(getApplicationContext(), null);
		setContentView(view);
	}
	
	@Override
	public void onBackPressed() {
		Intent intent = new Intent(CrackscreenActivity.this, MainActivity.class);
		startActivity(intent);
		CrackscreenActivity.this.finish();
	}
}
